/* Checkout CGV Checkbox Styles */
.checkout-cgv {
    margin-top: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color, #2563eb);
}

.checkout-cgv .form-check {
    margin-bottom: 0;
    align-items: flex-start;
}

.checkout-cgv .form-check-input {
    margin-top: 0.2rem;
    cursor: pointer;
}

.checkout-cgv .form-check-label {
    cursor: pointer;
    font-size: 0.95rem;
    color: #475569;
}

.checkout-cgv .cgv-link {
    color: var(--primary-color, #2563eb);
    text-decoration: underline;
    cursor: pointer;
}

.checkout-cgv .cgv-link:hover {
    color: var(--secondary-color, #1e40af);
}

.checkout-cgv .error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

.checkout-cgv.has-error {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.checkout-cgv.has-error .error-message {
    display: block;
}

/* Mediabox Styles */
.mediabox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.mediabox-overlay.active {
    display: flex;
}

.mediabox-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: mediaboxSlideIn 0.3s ease;
}

@keyframes mediaboxSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mediabox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.mediabox-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1e293b;
}

.mediabox-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
    transition: color 0.2s;
}

.mediabox-close:hover {
    color: #1e293b;
}

.mediabox-body {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(85vh - 140px);
    line-height: 1.6;
    color: #475569;
}

.mediabox-body h1,
.mediabox-body h2,
.mediabox-body h3 {
    color: #1e293b;
    margin-top: 20px;
    margin-bottom: 10px;
}

.mediabox-body h1:first-child {
    margin-top: 0;
}

.mediabox-body p {
    margin-bottom: 15px;
}

.mediabox-body ul,
.mediabox-body ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.mediabox-body li {
    margin-bottom: 5px;
}

.mediabox-footer {
    padding: 15px 25px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    .mediabox-content {
        max-height: 90vh;
    }
    
    .mediabox-body {
        max-height: calc(90vh - 120px);
        padding: 20px;
    }
    
    .mediabox-header {
        padding: 15px 20px;
    }
}
